﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;
using IMPlant.Core.Data.Ado;
using SMTC.Model.TestCore;
using System.Data.Common;
using IMPlant.Core.Data.Unity;
using IMPlant.Core.Data.Ado.BaseSupport;
using SMTC.WebCommon.Common;


public partial class Test_TestMaster : BasePage
{
    protected void Page_Load(object sender, EventArgs e) 
    {
        if (!IsPostBack)
        {
            DbParameter[] para = 
        {   
            DBparameterBuild.Build("@type",1)
            ,DBparameterBuild.Build("@ad","SU-4EA-Z01")
        };
            AdoTemplete test = new AdoTemplete("PlantDB");
            DbTransaction dbt = test.CreateDbTransaction();
            List<EmpInfo> list = test.ExcuteGetList<EmpInfo>(System.Data.CommandType.Text, "select * from EmpInfo", para, dbt);
            dbt.Commit();
            gvEMPList.DataSource = list;
            gvEMPList.DataBind();
        }


    }


}